#!/bin/bash

src_file=$1
rst_file=$2

while read -r line
do 
    ((num=16#${line:0:2}))
    echo $num >> $rst_file
    ((num=16#${line:2:2}))
    echo $num >> $rst_file
    ((num=16#${line:4:2}))
    echo $num >> $rst_file
    ((num=16#${line:6:2}))
    echo $num >> $rst_file
done < $src_file
